package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.WorkCenter;
import com.nbsaas.boot.manufacturing.api.domain.response.WorkCenterResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 工作中心-实体对象转化成响应对象
*/

public class WorkCenterResponseConvert  implements Converter<WorkCenterResponse,WorkCenter> {

    @Override
    public WorkCenterResponse convert(WorkCenter source) {
        WorkCenterResponse  result = new  WorkCenterResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

